package com.myproject.music.domain;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

public class Concert {
    @ApiModelProperty("演唱会id")
    private Long id;

    @ApiModelProperty("演唱会名")
    @NotBlank(message ="演唱会名不能为空")
    @Size(min = 1, max = 20, message = "歌手名字必须在1到20个字符之间")
    private String concertName;


    @ApiModelProperty("演唱会价格")
    private String price;

    @ApiModelProperty("演唱会歌手")
    private String creator;
    @ApiModelProperty("演唱会时间")
    private Date concertTime;

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    @ApiModelProperty("演唱会地点")
    private String place;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConcertName() {
        return concertName;
    }

    public void setConcertName(String concertName) {
        this.concertName = concertName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getConcertTime() {
        return concertTime;
    }

    public void setConcertTime(Date concertTime) {
        this.concertTime = concertTime;
    }
}
